export default {
  // Global page headers: https://go.nuxtjs.dev/config-head
  head: {
    title: 'novelSEO',
    htmlAttrs: {
      lang: 'en'
    },
    meta: [
      { charset: 'utf-8' },
      { name: 'viewport', content: 'width=device-width, initial-scale=1' },
      { hid: 'description', name: 'description', content: '' },
      { name: 'format-detection', content: 'telephone=no' }
    ],
    script: [
      {src: 'https://cdnjs.cloudflare.com/ajax/libs/crypto-js/4.0.0/core.min.js'},
      {src: 'https://cdnjs.cloudflare.com/ajax/libs/crypto-js/4.0.0/enc-base64.min.js'},
      {src: 'https://cdnjs.cloudflare.com/ajax/libs/crypto-js/4.0.0/md5.min.js'},
      {src: 'https://cdnjs.cloudflare.com/ajax/libs/crypto-js/4.0.0/evpkdf.min.js'},
      {src: 'https://cdnjs.cloudflare.com/ajax/libs/crypto-js/4.0.0/cipher-core.min.js'},
      {src: 'https://cdnjs.cloudflare.com/ajax/libs/crypto-js/4.0.0/aes.min.js'},
      {src: 'https://cdnjs.cloudflare.com/ajax/libs/crypto-js/4.0.0/pad-pkcs7.min.js'},
      {src: 'https://cdnjs.cloudflare.com/ajax/libs/crypto-js/4.0.0/mode-ecb.min.js'},
      {src: 'https://cdnjs.cloudflare.com/ajax/libs/crypto-js/4.0.0/enc-utf8.min.js'},
      {src: 'https://cdnjs.cloudflare.com/ajax/libs/crypto-js/4.0.0/enc-hex.min.js'},

      {
        src: 'https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v6.0&appId=899794817244401&autoLogAppEvents=1',
        async: true,
        defer: true,
        crossorigin: 'anonymous',
      },
      {src: 'https://apis.google.com/js/platform.js'},

      {src: 'https://www.gstatic.com/firebasejs/8.7.1/firebase-app.js'},

      {src: 'https://www.gstatic.com/firebasejs/8.7.1/firebase-analytics.js'},

      {src: 'https://www.gstatic.com/firebasejs/8.7.0/firebase-auth.js'},
      {src: 'https://www.gstatic.com/firebasejs/8.7.0/firebase-firestore.js'},

      {src: 'https://unpkg.com/vue-lazyload/vue-lazyload.js'},

      {
        src: 'https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5032048398333748',
        crossorigin: 'anonymous'
      }
    ],
    link: [
      { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
    ]
  },

  // Global CSS: https://go.nuxtjs.dev/config-css
  css: [
    'element-ui/lib/theme-chalk/index.css',
    'assets/style.css',
    'assets/font/font.css',
  ],

  // Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
  plugins: [

    '@/plugins/index',
    '@/plugins/element-ui',
  ],

  // Auto import components: https://go.nuxtjs.dev/config-components
  components: true,

  // Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules
  buildModules: [
    '@nuxtjs/router-extras'
  ],
  routerExtras : {
    /* 模块选项 */
  },

  // Modules: https://go.nuxtjs.dev/config-modules
  modules: [
  ],

  // Build Configuration: https://go.nuxtjs.dev/config-build
  build: {
    transpile: [/^element-ui/],
  },

  extends: ['@commitlint/config-conventional'],
}
